<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>用户标签</title>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
  $(document).ready(function() {
    $('#tt').tabs({
      onSelect : function(title) {
        $('#tt .panel-body').css('width', 'auto');
      }
    });
    $(".tabs-wrap").css('width', '100%');
  });
</script>
</head>
<body style="overflow-x: hidden;">
	<t:formvalid formid="formobj" dialog="true" usePlugin="password"
		layout="table" tiptype="1" action="wxTagController.do?doUpdate">
		<input id="id" name="id" type="hidden" value="${wxTagPage.id }">
		<input id="createName" name="createName" type="hidden"
			value="${wxTagPage.createName }">
		<input id="createBy" name="createBy" type="hidden"
			value="${wxTagPage.createBy }">
		<input id="createDate" name="createDate" type="hidden"
			value="${wxTagPage.createDate }">
		<input id="updateName" name="updateName" type="hidden"
			value="${wxTagPage.updateName }">
		<input id="updateBy" name="updateBy" type="hidden"
			value="${wxTagPage.updateBy }">
		<input id="updateDate" name="updateDate" type="hidden"
			value="${wxTagPage.updateDate }">
		<input id="sysOrgCode" name="sysOrgCode" type="hidden"
			value="${wxTagPage.sysOrgCode }">
		<input id="sysCompanyCode" name="sysCompanyCode" type="hidden"
			value="${wxTagPage.sysCompanyCode }">
		<input id="accountId" name="accountId" type="hidden"
			value="${wxTagPage.accountId }">
		<table cellpadding="0" cellspacing="1" class="formtable">
			<tr>
				<td align="right"><label class="Validform_label">标签名称:</label>
				</td>
				<td class="value"><input id="name" name="name" type="text"
					style="width: 150px" class="inputxt" datatype="*"
					value='${wxTagPage.name}'> <span class="Validform_checktip"></span>
					<label class="Validform_label" style="display: none;">标签名称</label>
				</td>
				<td align="right"><label class="Validform_label">标签标识:</label>
				</td>
				<td class="value"><input id="tagId" name="tagId" type="text"
					style="width: 150px" class="inputxt" value='${wxTagPage.tagId}'
					readonly> <span class="Validform_checktip"></span> <label
					class="Validform_label" style="display: none;">标签标识</label></td>
			</tr>
			<tr>
				<td align="right"><label class="Validform_label">粉丝数:</label></td>
				<td class="value"><input id="userCount" name="userCount"
					type="text" style="width: 150px" class="inputxt"
					value='${wxTagPage.userCount}' readonly> <span
					class="Validform_checktip"></span> <label class="Validform_label"
					style="display: none;">粉丝数</label></td>
				<td align="right"><label class="Validform_label">备注:</label></td>
				<td class="value"><input id="remark" name="remark" type="text"
					style="width: 150px" class="inputxt" value='${wxTagPage.remark}'>
					<span class="Validform_checktip"></span> <label
					class="Validform_label" style="display: none;">备注</label></td>
			</tr>
		</table>
		<div style="width: auto; height: 200px;">
			<%-- 增加一个div，用于调节页面大小，否则默认太小 --%>
			<div style="width: 800px; height: 1px;"></div>
			<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
				<t:tab href="wxTagController.do?wxUserTagList&id=${wxTagPage.id}"
					icon="icon-search" title="用户标签" id="wxUserTag"></t:tab>
			</t:tabs>
		</div>
	</t:formvalid>
	<!-- 添加 附表明细 模版 -->
	<table style="display: none">
		<tbody id="add_wxUserTag_table_template">
			<tr>
				<input name="wxUserTagList[#index#].userId" class="user-id"
					type="hidden" value="wxUserTagList[#index#].userId">
				<input name="wxUserTagList[#index#].userIcon" class="user-icon"
					type="hidden" value="wxUserTagList[#index#].userIcon">

				<td align="center"><div style="width: 25px;" name="xh"></div></td>
				<td align="center"><input style="width: 20px;" type="checkbox"
					name="ck" /></td>

				<td align="left"><img src="#" class="img-user-icon"
					style="width: 40px; height: 40px;" /></td>

				<td align="left"><input name="wxUserTagList[#index#].userName"
					maxlength="100" type="text" class="inputxt" style="width: 120px;"
					onclick="openUserSelectDlg(this)"> <label
					class="Validform_label" style="display: none;">用户名称</label></td>
			</tr>
		</tbody>
	</table>
</body>
<script src="webpage/com/gomore/wechat/module/tag/wxTag.js"></script>